all : main_c main_cpp

main_c : build/main_c.o build/nmd_set.o
	g++ $^ -o $@

main_cpp : build/main_cpp.o build/nmd_set.o build/nmd_scopedset.o
	g++ $^ -o $@

build/main_c.o : test/main.c
	g++ -Isrc -c $^ -o $@

build/main_cpp.o : test/main.cpp
	g++ -Isrc -c $^ -o $@

build/nmd_set.o : src/nmd_set.c
	g++ -c $^ -o $@

build/nmd_scopedset.o : src/nmd_scopedset.cpp
	g++ -c $^ -o $@

clean :
	rm -f main_c
	rm -f main_cpp
	rm -f build/*.o

